//package com.yr.log.task;
//
//import com.alibaba.fastjson.JSONObject;
//import com.yr.common.EventModel;
//import com.yr.log.util.JedisAdapter;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
//@Service
//public class EventProducer {
//    @Autowired
//    JedisAdapter jedisAdapter;
//
//    public boolean fireEvent(EventModel eventModel) {
//        try {
//            String json = JSONObject.toJSONString(eventModel);
//            String key = "log";
//            jedisAdapter.lpush(key, json);
//            return true;
//        } catch (Exception e) {
//            return false;
//        }
//    }
//}
